import request from '@/router/axios';
// 获取短息模版记录 xmbz-system
export const SmsTemplateNameAndContent = (query) => {
  return request({
    url: '/api/xmbz-system/sms/getSmsTemplateNameAndContent',
    method: 'get',
    params: query
  })
}
// 获取短信发送状态下拉列表的值
export const SmsSendStatus = (query) => {
  return request({
    url: '/api/xmbz-system/sms/getSmsSendStatus',
    method: 'get',
    params: query
  })
}
// 短信发送记录查询
export const SmsSendRecordPageInfo = (query) => {
  return request({
    url: '/api/xmbz-system/sms/getSmsSendRecordPageInfo',
    method: 'get',
    params: query
  })
}
// 发送短信

export const sendSms = (data) => {
  return request({
    url: '/api/xmbz-system/sms/sendSms',
    method: 'post',
    data
  })
}


// 发送短信

export const sendInquirySms = (data) => {
  return request({
    url: '/api/xmbz-order/order/sendSms',
    method: 'post',
    data
  })
}

// 返回订单要发的短信内容
export const getDefaultSmsTemplate = (query) => {
  return request({
    url: '/api/xmbz-order/order/getDefaultSmsTemplate',
    method: 'get',
    params: query
  })
}
